We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anujpandey2/MCPDataAnalytics'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
helloworld_fastmcp_server.py•450 B
"""
Minimal Hello World MCP Server Example (FastMCP)
To test this server, use prompts like:
- "test MCP"
- "say hello"
- "are you working?"
"""
from fastmcp import FastMCP
# Server instance
mcp = FastMCP("hello-world")
## Tool registry
@mcp.tool()
def say_hello(name: str = "World") -> str:
"""Says hello to demonstrate MCP is working"""
return f"Hello, {name}! MCP server is working!"
## Runner
if __name__ == "__main__":
mcp.run()